package com.contractpage.sys;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/*import cfca.org.slf4j.Logger;
import cfca.org.slf4j.LoggerFactory;*/

@ControllerAdvice
public class GlobalExceptionHandler {

    //private static final Logger logger = LoggerFactory.getLogger(GlobalExceptionHandler.class);

    @ExceptionHandler(Exception.class)
    @ResponseBody
    public void handle(Exception e) {
        //logger.warn("GloabalExceptionHandler handing a Exception: " + e.getMessage());
        e.printStackTrace();
    }
}